export function property(value: { displayName: string, type: string, value?: any }) {
  return function (target: any, propertyName: string) {
    if (!target.propsMap) target.propsMap = {};
    target.propsMap[propertyName] = value;
  }
}

export function eventProperty(value: { displayName: string }) {
  return function (target: any, propertyName: string) {
    if (!target.eventPropsMap) target.eventPropsMap = {};
    target.eventPropsMap[propertyName] = value;
  }
}